#include<stdio.h>
#include<pwd.h>
#include <unistd.h>
#include <sys/types.h>
#include <stdlib.h>

int main(int argc, char*argv[])
{

	//判断当前用户是不是超级用户
	//struct passwd *pwd = getpwuid(getuid());
	if(getuid() == 0)
	{
		printf("yes\n");
		system("touch /etc/hello.txt");
	}
	else
	{
		printf("no\n");
	}

	return 0;
}

